package com.yztc.orangeentertainment.ui.main.subscribefragment;

import android.content.Context;

import com.yztc.orangeentertainment.adapter.SubInterestAdapter;
import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.subscribebean.ListBean;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * Created by My on 2016/10/5.
 */
public class SubContract {
    public interface View extends IView {
        //发送到adapter
        public void sendToAdapter(SubInterestAdapter adapter);
        public void onLoadInterestSuccess(List<ListBean> listBeanList);
        //加载数据失败
        public void onLoadInterestFail(String msg);
    }
    public interface Modle extends IModle {
        //得到list
        public void getInterestAll(String type,Map<String, String> params, OnLoadBottomListener loadBottomListener, Context context);
        //获得数据库
        public void getInterestFromDb(Subscriber<List<ListBean>> subscriber);
    }
    public interface Presenter extends IPresenter {
        public void getInterestFromNet(Map<String, String> params, Context context);
        public void  getInterestFromDb();
    }
}
